package D240523.practice02;

import java.util.Scanner;

public class Input {
    static Scanner scanner = new Scanner(System.in);
    static String phoneNumber;


    public static void input(){
        System.out.println("请输入您的手机号码：");
        phoneNumber = scanner.next();
        if (phoneNumber.length() != 11){
            System.out.println("请输入正确的手机号！");
            phoneNumber = scanner.next();
        }
    }
}
